/**
 * 
 */
package weibo4j.crawler;

/**
 * @author longrui
 *
 */
public class CommentQueueRecord extends QueueRecord {
	public long commentedStatusId;
	
	public CommentQueueRecord(long commentedStatusId, String enqueueTime){
		super();
		this.commentedStatusId = commentedStatusId;
		this.enqueueTime = enqueueTime;
	}
	
	public String[] getRecord(){
		String[] res = new String[2];
		res[0] = Long.toString(commentedStatusId);
		res[1] = enqueueTime;
		return res;
	}
	public static String getFieldString(){
		return "(commented_status_id, enqueue_time)";
	}
	public static String getEmptyValueString(){
		return "(?, ?)";
	}
	
	public String getCommentQueueRecordSQLString(){
		return "insert into queue4comment set commented_status_id=" + Long.toString(commentedStatusId)
			+ ", enqueue_time='" + enqueueTime + '\'';
	}
	
	
}
